import { LoginRequest, UserInfoEntity } from './type/login';
import { defHttp } from "/@/utils/http/axios";

export const loginApi = {
  login: (params: LoginRequest): Promise<UserInfoEntity> => {
    return defHttp.post<UserInfoEntity>({
      url: 'TokenAuth/Authenticate',
      data: params
    })
  }
}
